import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, IsString } from 'class-validator';

export class CreateClassRoomDto {
  @ApiProperty({ example: '1', description: '教室名', required: true })
  @IsString()
  class_room_name: string;

  @ApiProperty({ example: '1', description: '人数', required: true })
  @IsNumber()
  capacity: number;
}
